@charset "utf-8";
/*!
 * Created by Toma on 2016-8-9 11:28:09
 * @file 量化积木 @ver 0.0.1
 */

@import "toma";
@include d();

$theme:#f75549;


// 导航
.ui-header,.ui-footer{
  position: absolute;
}

.cc-navlink{
  display: block;
  width: 100%;
  font-size: 14px;
  text-align: center;
  color: #666;
  &.active{
    background: $theme;
    color: #fff;
  }
}

// 快速链接
.cc-footer{
  li{
    font-size: 13px;
    a{
      display: block;
      width: 100%;
      padding-top: 7px;
      color: #999;
    }
    &.active{
      a{
        color: #666;
      }
      .com-icon{
        background: url("../img/commonlogo.png") no-repeat left top/ auto 100%;
      }
    }
  }
}
.com-icon{
  display: block;
  width: 25px;
  height: 25px;
  background: url("../img/commonlogo.png") no-repeat right top/ auto 100%;
  margin: 0 auto 2px;
}

// 策略市场
.cc-ord{
  display: -webkit-box;
  -webkit-box-align:center;
  margin: 10px 10px 10px 0;
  strong{
    display: block;
    font-size: 16px;
    color: #666;
    text-align: center;
    line-height: 27px;
    height: 26px;
    width: 26px;
  }
}
.cl-list li{
  display: block;
}
.cl-list-con{
  padding-right:10px;
}
.cl-char{
  margin: 10px 15px 10px 0;
  font-size: 0;
  canvas{
    width: 60px;
    height: 43px;
  }
}
.pull-right{
  float: right;
  margin-left: 5px;
}

.cl-table{
  padding-right: 15px;
  font-size: 13px;
  margin-bottom: 5px;
  th,td{
    padding: 5px;
  }
  th{
    background: #f5f5f5;
  }
}

.cl-i-link{
  font-size: 13px;
  padding-right: 15px;
  padding-bottom: 6px;
  a{
    margin-left: 15px;
  }
  span{
    vertical-align: -1px;
    font-size: 18px;
    line-height: 1;
  }
}

// 策略配置
.cc-aside{
  position: absolute;
  width: 25%;
  height:100%;
  top: 0;
  left: 0;
  background: #f5f5f5;
}
.cc-a-se{
  position: absolute;
  top: 0;
  left: 25%;
  height: 100%;
  width: 75%;
}
.cc-a-con{
  padding: 10px 15px;
}

// 分页选项
.cl-page{
  width: 100%;
  h4{
    margin: 10px 0;
  }
  .cl-search{
    margin: 0 0 10px 0;
    height: 38px;
    padding-left: 0;
    i{
      padding-left: 4px;
    }
    .ui-searchbar-input{
      padding-right: 10px;
    }
  }
}

// 策略详情
.de-tit{
  margin: 5px 0 10px 0;
}
.de-char{
  position: relative;
  height: 170px;
  //background: #eee;
  >div{
    position:absolute;
    top: -24px;
  }
}
.de-table{
  @extend .cl-table;
  padding-right: 0;
  margin-bottom: 10px;
  table{
    background: #fff;
  }
  h4{
    line-height: 2;
  }
}
.de-intro{
  margin-bottom: 12px;
  h4{
    line-height: 2;
  }
  p{
    font-size: 14px;
    line-height: 1.6;
    color: #666;
  }
}
.cc-btn-group{
  .ui-col:first-child{
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }
  .ui-col:last-child{
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: 0;
  }
}

// 我的策略
.mine-list{
  li{
    margin-left: 0;
  }
  .cl-i-link{
    padding: 0 15px;
    background: #f8f8f8;
    a{
      display: block;
      padding: 5px 0 7px;
      margin-left: 0;
      font-size: 12px;
      text-align: center;
      white-space: nowrap;
    }
    a.action{
      color: $theme;
    }
    a:active{
      background: rgba(0, 0, 0, .5);
    }
  }
}
.mine-fi{
  margin-left: 15px;
  -webkit-box-orient: vertical;
  width: 64px;
  p{
    color: $theme;
    font-size: 16px;
    display: block;
  }
  span{
    font-size: 14px;
    color: #777;
  }
}

// 策略优化
.cc-textarea{
  font-size: 0;
  padding: 10px;
  background: #fff;
  textarea{
    border: 0;
    width: 100%;
    font-size: 14px;
    line-height: 1.6;
  }
}
.opt-count{
  margin-left: 25px;
  opacity: .5;
  span{
    display: inline-block;
    width: 46px;
    margin-right: 15px;
  }
  .add{
    vertical-align: middle;
    margin-top: -3px;
    height: 30px;
    width: 30px;
    margin-left: 10px;
    &::after{
      content: '';
      display: block;
      margin: -10px auto auto;
      width: 0;
      height: 0;
      border-top: 10px solid transparent;
      border-bottom: 10px solid $theme;
      border-left: 10px solid transparent;
      border-right: 10px solid transparent;
      transform: scale(.7,1);
    }
  }
  .sub{
    @extend .add;
    &::after{
      margin: 10px auto;
      border-top: 10px solid $theme;
      border-bottom: 10px solid transparent;
    }
  }
}
.J_check.active{
  .opt-count{
    opacity: 1;
  }
}

.cfig-check{
  .J_check{
    -webkit-box-orient: vertical;
    padding: 15px 0;
  }
  .opt-count{
    margin-left: 60px;
  }
}

// 浮动按钮
.occ{
  height: 60px;
}
.opt-btn-group{
  position: fixed;
  display: table;
  bottom: 56px;
  left: 0;
  width: 100%;
  height: 45px;
  a{
    display: table-cell;
    text-align: center;
    line-height: 45px;
    background-color: #f75549;
    background-image: -webkit-gradient(linear,left top,left bottom,color-stop(0.5,#fc6156),to(#f75549));
    color: #fff;
    border-top: 1px solid #f43d30;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
  }
  a:first-child{
    border-right: 1px solid #f43d30;
  }
  a:active{
    background: #e2574d;
    border-color: #e2574d;
    color: rgba(255,255,255,.5);
  }
}

// 完成配置
.cfig-pz{
  background: #eee;
  text-align: center;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-box-align: center;
  padding: 10px;
  p{
    margin-bottom: 3px;
    font-size: 13px;
    color: #777;
  }
  h4{
    margin: 0;
  }
  &:first-child{
    margin-top: 5px;
  }
}
.cl-arrow{
  display: block;
  width: 10px;
  height: 30px;
  margin: 0 auto;
  background: url("../img/arr.png") no-repeat center/contain;
}
.cfig-clini{
  margin: 15px 0 ;
  height: 38px;
  padding-left: 0;
  .ui-searchbar-input{
    padding: 0 10px;
  }
}

// 弹出框的input
.pluint{
  -webkit-appearance: none;
  height: 40px;
  min-width: 180px;
  border: 1px solid #e0e0e0;
  padding-left: 10px;
}

// 没有数据了
.data-end{
  text-align: center;
  font-size: 14px;
  color: #999;
  line-height: 50px;
}



// 图标
.cc-a-item{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-box-pack: center;
  -webkit-box-align: center;
  text-align: center;
  font-size: 13px;
  color: #bbb;
  &.active{
    color: #555;
    background: #fff;
    border-bottom: .5px solid #e0e0e0;
    .cl-ico-code{
      @extend %ico;
      background: url("../img/icon/01.png") no-repeat center/contain;
    }
    .cl-ico-time{
      @extend %ico;
      background: url("../img/icon/03.png") no-repeat center/contain;
    }
    .cl-ico-control{
      @extend %ico;
      background: url("../img/icon/05.png") no-repeat center/contain;
    }
    .cl-ico-warn{
      @extend %ico;
      background: url("../img/icon/07.png") no-repeat center/contain;
    }
    .cl-ico-config{
      @extend %ico;
      background: url("../img/icon/09.png") no-repeat center/contain;
    }
  }
}
%ico{
  display: block;
  width: 26px;
  height: 26px;
  margin-bottom: 5px;
}
.cl-ico-code{
  @extend %ico;
  background: url("../img/icon/02.png") no-repeat center/contain;
}
.cl-ico-time{
  @extend %ico;
  background: url("../img/icon/04.png") no-repeat center/contain;
}
.cl-ico-control{
  @extend %ico;
  background: url("../img/icon/06.png") no-repeat center/contain;
}
.cl-ico-warn{
  @extend %ico;
  background: url("../img/icon/08.png") no-repeat center/contain;
}
.cl-ico-config{
  @extend %ico;
  background: url("../img/icon/10.png") no-repeat center/contain;
}
